public class AccessLevel {
  public String canAccess( int[] rights, int minPermission ) {
    String AorDs = "";
    
  for( int i = 0; i < rights.length; i++ ) {
    if ( rights[i] >= minPermission )
      AorDs = AorDs + "A";
    else 
      AorDs = AorDs + "D";
  }
  return AorDs;
 }
}